package org.pliers.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

public class BaseModel<T extends Model<?>> extends Model<T> {

    @TableId
    private Long id;
    @TableField(fill = FieldFill.INSERT)
    private Long  createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long  updateTime;
    @Version
    private Integer version;
    @TableLogic
    private Integer deleted;

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long  getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long  createTime) {
        this.createTime = createTime;
    }

    public Long  getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long  updateTime) {
        this.updateTime = updateTime;
    }
}
